﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HFController;
namespace HFWebApp.Control
{
    public partial class LayerList : System.Web.UI.UserControl
    {
        public int Count { get; set; }
        public int TypeID { get; set; }
        public BagePages bg = new BagePages();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                switch (TypeID)
                { 
                    case 0://推荐律师
                        layer_List.DataSource = LawyerController.getController().getLawyerList(9, 1);
                        break;
                    case 1://最新回复律师
                        List<hf.Model.Answer> list = AnswerController.getController().getAnswerList(20);
                        layer_List.DataSource = LawyerController.getController().getLawyerList(6 ,list);
                        break;
                }
                layer_List.DataBind();
            }
        }
    }
}